package com.riaya.controller;

import com.riaya.entity.Sort;
import com.riaya.mapper.SortMapper;
import com.riaya.model.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: KAIyo
 * @Date: 2025/7/24 15:24
 * @Version: v1.0.0
 * @Description: TODO
 **/
@RestController
public class SortController {

    @Autowired
    private SortMapper sortMapper;

    @GetMapping("/getsortlist")
    public R getSortList()
    {
        List<Sort> sortList = sortMapper.selectAll();
        return R.ok(sortList, "查询成功");
    }
}
